package edu.nf.project.services.accountsAndPermissions.impl;

import edu.nf.project.entitys.entity.accountsAndPermissions.convention.Permissions;
import edu.nf.project.mappers.accountsAndPermissions.convention.PermissionsMapper;
import edu.nf.project.services.accountsAndPermissions.PermissionsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 权限 Service 实现类
 */
@Service
public class PermissionsServiceImpl implements PermissionsService {
    @Autowired
    private PermissionsMapper permissionsMapper;

    @Override
    public List<Permissions> getAll() {
        return permissionsMapper.selectList(null);
    }
}
